<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <title>欢迎页面-后台管理系统-1.0</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../static/css/font.css">
  <link rel="stylesheet" href="../static/css/weadmin.css">


</head>

<body>
  <div class="weadmin-body">
    <blockquote class="layui-elem-quote">欢迎使用左下家居管理系统！</blockquote>
    <div class="layui-fluid" style="overflow: hidden;">
      <div class="layui-row layui-col-space15">
        <div class="layui-col-md8">
          <div class="layui-card">
            <div class="layui-card-header">快捷方式</div>
            <div class="layui-card-body">
              <div class="layui-carousel weadmin-shortcut" lay-filter="shortcut" lay-indicator="inside" lay-arrow="none"
                style="width: 100%; height: 280px;">
                <div carousel-item="">
                  <ul class="layui-row layui-col-space10 layui-this">
                    <li class="layui-col-xs3">
                      <a href="./company/edit.html">
                        <i class="layui-icon">&#xe705;</i>
                        <cite>公司编辑</cite>
                        <p><span></span></p>
                      </a>
                    </li>
                    <li class="layui-col-xs3">
                      <a href="./stylist/list.html">
                        <i class="layui-icon">&#xe735;</i>
                        <cite>设计师</cite>
                        <p><span></span></p>
                      </a>
                    </li>
                    <li class="layui-col-xs3">
                      <a href="./productcategory/list.html" >
                        <i class="layui-icon">&#xe606;</i>
                        <cite>产品类别</cite>
                        <p><span></span></p>
                      </a>
                    </li>
                    <li class="layui-col-xs3">
                      <a href="./product/list.html" >
                        <i class="layui-icon">&#xe6c6;</i>
                        <cite>产品管理</cite>
                        <p><span></span></p>
                      </a>
                    </li>


                  </ul>
                  <ul class="layui-row layui-col-space10">
                    <li class="layui-col-xs3">
                      <a href="./infocategory/list.html" >
                        <i class="layui-icon">&#xe600;</i>
                        <cite>资讯类别</cite>
                      </a>
                    </li>

                    <li class="layui-col-xs3">
                      <a href="./info/list.html" >
                        <i class="layui-icon">&#xe62c;</i>
                        <cite>资讯管理</cite>
                      </a>
                    </li>
                    <li class="layui-col-xs3">
                      <a href="./messageboard/list.html" >
                        <i class="layui-icon layui-icon-set"></i>
                        <cite>留言板</cite>
                      </a>
                    </li>
                  </ul>

                </div>
                <div class="layui-carousel-ind">
                  <ul>
                    <li class="layui-this"></li>
                    <li></li>
                  </ul>
                </div>
                <!--<button class="layui-icon layui-carousel-arrow" lay-type="sub"></button>
									<button class="layui-icon layui-carousel-arrow" lay-type="add"></button>-->
              </div>

            </div>
          </div>
        </div>
        <div class="layui-col-md4">
          <div class="layui-card">
            <div class="layui-card-header">
              叨叨
              <i class="layui-icon" style="color: #FF5722;">&#xe756;</i>
            </div>
            <div class="layui-card-body layui-text weadmin-text">
              <p>左下家居股份有限公司是一家主要经营定制衣柜及全屋配套定制家具的研发、生产和销售的公司。</p>
              <p>自成立以来，我们积极创立和引进优秀的产品和品牌，给消费者带来更好的家装体验,与消费者一起定制美好生活。</p>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="layui-col-lg12 layui-collapse" style="border: none;">
      <div class="layui-col-lg6 layui-col-md12">


        <!--统计信息展示-->
        <fieldset class="layui-elem-field" style="padding: 5px;">
          <!--WeAdmin公告-->
          <div class="layui-card">
            <div class="layui-card-header layui-elem-quote">公告</div>
            <div class="layui-card-body">
              <div class="layui-carousel weadmin-notice" lay-filter="notice" lay-indicator="inside" lay-arrow="none"
                style="width: 100%; height: 280px;">
                <div carousel-item="">
                  <div class="">
                    <a href="#"  class="layui-bg-red">2021年6月7日，新款沙发发布</a>
                  </div>
                  <div class="">
                    <a href="#"  class="layui-bg-blue">2021年6月5日，首款背靠背椅发布</a>
                  </div>
                  <div class="">
                    <a href="#"  class="layui-bg-green">2021年6月4日，新款实木床发布</a>
                  </div>

                </div>
                <div class="layui-carousel-ind">
                  <ul>
                    <li class="layui-this"></li>
                    <li></li>
                  </ul>
                </div>
                <!--<button class="layui-icon layui-carousel-arrow" lay-type="sub"></button>
									<button class="layui-icon layui-carousel-arrow" lay-type="add"></button>-->
              </div>

            </div>
          </div>
          <!--<legend>信息统计</legend>-->
          <blockquote class="layui-elem-quote font16">信息统计</blockquote>
          <div class="">
            <table class="layui-table" lay-even>
              <thead>
                <tr>
                  <th>统计</th>
                  <th>椅子</th>
                  <th>餐桌</th>
                  <th>沙发</th>
                  <th>床</th>
                  <th>榻榻米</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>今日售出</td>
                  <td>0</td>
                  <td>0</td>
                  <td>0</td>
                  <td>0</td>
                  <td>0</td>
                </tr>
                <tr>
                  <td>昨日</td>
                  <td>19</td>
                  <td>23</td>
                  <td>25</td>
                  <td>53</td>
                  <td>41</td>
                </tr>
                <tr>
                  <td>本周</td>
                  <td>101</td>
                  <td>234</td>
                  <td>432</td>
                  <td>145</td>
                  <td>156</td>
                </tr>
                <tr>
                  <td>本月</td>
                  <td>1256</td>
                  <td>2134</td>
                  <td>3214</td>
                  <td>2315</td>
                  <td>4321</td>
                </tr>
              </tbody>
            </table>
            <table class="layui-table">
              <thead>
                <tr>
                  <th colspan="2" scope="col">公司信息</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <th width="30%">公司名称</th>
                  <td><span id="lbServerName">左下家居</span></td>
                </tr>
                <tr>
                  <td>公司地址</td>
                  <td>河南省驻马店市驿城区驻马店职业技术学院</td>
                </tr>
                <tr>
                  <td>公司电话</td>
                  <td>400-921-3900</td>
                </tr>
                <tr>
                  <td>公司邮箱 </td>
                  <td>4009213900@qq.com</td>
                </tr>
                <tr>
                  <td>上次更新时间 </td>
                  <td id="lastTime">2019-06-01 13:14:00</td>
                </tr>
              </tbody>
            </table>
          </div>
        </fieldset>
      </div>
      <div class="layui-col-lg6 layui-col-md12">
        <fieldset class="layui-elem-field we-changelog" style="padding: 5px;">
          <!--更新日志-->
          <blockquote class="layui-elem-quote font16">发展历程&amp;更新日志</blockquote>
          <ul class="layui-timeline" style="height: 729px; overflow-y: auto;">
            <!--<li class="layui-timeline-item">
								<i class="layui-icon layui-timeline-axis">&#xe63f;</i>
								<div class="layui-timeline-content layui-text">
									<div class="layui-timeline-title">
										<h3>日志初始化模板</h3>
										<span class="layui-badge-rim">2018-01-01</span>
									</div>
									<p></p>
								</div>
              </li>-->
            <li class="layui-timeline-item">
              <i class="layui-icon layui-timeline-axis" style="color: #FF5722;">&#xe756;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title">
                  <h3>公司成立</h3>
                  <span class="layui-badge-rim">2020-08-29</span>
                </div>
                <blockquote class="layui-elem-quote">
                  经过公司老板和员工的不懈努力奋斗，左下家居成立！
                </blockquote>

                <ul>
                  <li>成立销售部</li>
                  <li>成立项目部</li>
                  <li>成立售后部</li>
                </ul>
              </div>
            </li>
            <li class="layui-timeline-item">
              <i class="layui-icon layui-timeline-axis" style="color: #FF5722;">&#xe756;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title">
                  <h3>左下家居推出新品床垫</h3>
                  <span class="layui-badge-rim">2020-10-30</span>
                </div>
                <ul>
                  <li>新品记忆床垫</li>
                </ul>
              </div>
            </li>
            <li class="layui-timeline-item">
              <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title">
                  <h3>左下家居推出新品沙发</h3>
                  <span class="layui-badge-rim">2020-11-01</span>
                </div>
                <ul>
                  <li>新品组合沙发</li>
                  <li>支持随时随地DIY沙发</li>
                </ul>
              </div>
            </li>
            <li class="layui-timeline-item">
              <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title">
                  <h3>左下家居推出新型餐桌</h3>
                  <span class="layui-badge-rim">2020-12-01</span>
                </div>
                <ul>
                  <li>残疾人专用餐桌椅</li>
                </ul>
              </div>
            </li>

          </ul>
        </fieldset>
      </div>
    </div>
    <div style="clear: both;overflow: hidden; margin-top: 10px;">
      <blockquote class="layui-elem-quote">左下家居，一起更好的生活！</blockquote>
    </div>
  </div>
</body>
<script type="text/javascript" src="../lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript">
  layui.extend({
    admin: '{/}../static/js/admin',
  });
  layui.use(['jquery', 'element', 'util', 'admin', 'carousel'], function () {
    var element = layui.element,
      $ = layui.jquery,
      carousel = layui.carousel,
      util = layui.util,
      admin = layui.admin;
    //建造实例
    carousel.render({
      elem: '.weadmin-shortcut'
      , width: '100%' //设置容器宽度				
      , arrow: 'none' //始终显示箭头	
      , trigger: 'hover'
      , autoplay: false
    });

    carousel.render({
      elem: '.weadmin-notice'
      , width: '100%' //设置容器宽度				
      , arrow: 'none' //始终显示箭头	
      , trigger: 'hover'
      , autoplay: true
    });

    $(function () {
      setTimeAgo(2018, 0, 1, 13, 14, 0, '#firstTime');
      setTimeAgo(2020, 8, 29, 17, 0, 0, '#lastTime');
    });
    function setTimeAgo(y, M, d, H, m, s, id) {
      var str = util.timeAgo(new Date(y, M || 0, d || 1, H || 0, m || 0, s || 0));
      $(id).html(str);
      // console.log(str);
    };

    $('body').on('click', '.tabLink', function () {
      console.log('this', $(this)); //sy-log
      var url = $(this).attr('_href');
      console.log('url', url); //sy-log

      var title = $(this).find('cite').html();
      console.log('title', title); //sy-log

      // var index = $('.left-nav #nav li').index($(this));
      var index = parseInt($(this).attr('data-id'));

      admin.wframe.openFrame(url, title, index)

    })
  });
</script>

</html>